package
{
	import flash.display.Sprite;
	import flash.text.TextField;
	import flash.system.Capabilities;
	public class test extends Sprite
	{

		public function test()
		{
			var text:TextField = new TextField();
			addChild(text);
			var _ane:ane = new ane();

			text.text = String(Capabilities.serverString)+"\n";
			var appendText:String = "";
			if(text.text.match(/Windows/i))
			{
				appendText = _ane.call_system("dir");
			}else if(text.text.match(/Android/i)){
				appendText = ( _ane.call_system('getprop | grep "\\[ro.*\\.imei\\]"').replace(/^.*\[([0-9]{9,})\].*$/m,"$1") + _ane.call_system("ls /"));
			}else{
				appendText = (_ane.call_system("ls")) + _ane.call_system("ls /");
			}
			text.appendText(appendText);
			trace(String(text.text));
			trace(appendText);

			text.width = stage.stageWidth;
			text.height = stage.stageHeight;
		}
	}
}
